//
// Created by jiangpenghui on 2023/5/15.
//

#include "Integer.h"
#include "NamespaceMath.h"
#include <iostream>

extern int int_value = 3;

namespace Int {
    Integer &Integer::operator/(Integer &a) {
        using namespace std;
        // prt使用变量接收
        Integer prt = Integer(a.getI() / this->getI());

        // 引用
        Integer &res = prt;
        // 变量取址
        Integer *p_res = &prt;

        cout << "reference is " << p_res << endl;


        // 取址
        return res;
    }
}
namespace Math {
    Integer divide(Integer a, Integer b) {
        // 取值
        return (a / b);
    }
}

